import 'package:flutter/material.dart';
import 'package:flutter_food_ordering_web/routers/fluro_navigator.dart';
import 'package:flutter_food_ordering_web/routers/routers.dart';

class PageNotFound extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'ERROR 404 : 网页不存在',
              style: TextStyle(
                fontSize: 30.0,
                fontWeight: FontWeight.w600,
              ),
              textAlign: TextAlign.center,
            ),
            Image(
              height: 300.0,
              width: 300.0,
              image: AssetImage('assets/images/404.png'),
              fit: BoxFit.contain,
            ),
            Text(
              '额...你不应该在这里',
              style: TextStyle(
                fontSize: 30.0,
                fontWeight: FontWeight.w600,
                color: Theme.of(context).primaryColor,
              ),
              textAlign: TextAlign.center,
            ),
            InkWell(
              onTap: () {
                NavigatorUtils.push(context, Routes.login, replace: true);
              },
              child: Text(
                ' 返回到乐歌金东大厦订餐系统 ',
                style: TextStyle(
                  fontStyle: FontStyle.italic,
                  fontSize: 20.0,
                  fontWeight: FontWeight.w600,
                  color: Colors.red,
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
